--
-- Author: mm
-- Date: 2018-04-14 17:16:25
-- LionHornUserInfoVo
-- 狮心号角地图上玩家数据结构

local UserBaseInfo = require("app.public.dao.UserBaseInfo")

local fileName = string.getModeName(...)
local ClassRef = class(fileName)

-- message LionHeartHornPlayerInfo{
-- 	base.UserBaseInfo userInfos = 1;//匹配成功后的基本信息
-- 	int32 pos                   = 2;
-- 	int32 mapID                 = 3;
-- }
function ClassRef:ctor(data)
	self._memberUserBaseInfo = UserBaseInfo.new()
	self._pos = 0
	self._mapID = 0

	if data then
		self:read(data)
	end
end

function ClassRef:read(data)
	self._memberUserBaseInfo = UserBaseInfo.new( data.userInfos )
	self._pos = data.pos
	self._mapID = data.mapID
end

function ClassRef:getInfo()
	return self._memberUserBaseInfo
end

function ClassRef:getPos()
	return self._pos
end

return ClassRef
